﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sahit.iSoilHotel.Application.MainBoundedContext.DTO.AuthenticationAgg
{
    [Serializable]
    public class RegistrationResultDTO
    {
        #region Members

        public IList<string> Errors { get; private set; }

        public bool IsSuccess
        {
            get
            {
                return this.Errors.Count == 0;
            }
        }

        #endregion

        #region Constructor

        public RegistrationResultDTO()
        {
            this.Errors = new List<string>();
        }

        #endregion

        #region Public Methods

        public void AddError(string error)
        {
            this.Errors.Add(error);
        }

        #endregion
    }
}
